{% load MyTemplate %}
                <div class="box-body table-responsive no-padding">
{#                    <table id="table_record_list" class="table table-hover" domain="{{ zone_obj.zone_name }}" history_search_key="{{ history_search_key }}">#}
                    <table id="table_record_list" class="table table-hover" zone_name="{{ zone_obj.zone_name }}" zone_id="{{ zone_obj.id }}">
                        <thead>
                        <tr>
                            <th class="th-w2-1"><input type="checkbox" data-check-all></th>
                            <th class="th-w2-2">主机记录</th>
                            <th class="th-w2-3">记录类型</th>
                            <th class="th-w2-4">解析线路</th>
                            <th class="th-w2-5">记录值</th>
                            <th class="th-w2-6">MX优先级</th>
                            <th class="th-w2-7">TTL</th>
                            <th class="th-w2-8">状态</th>
                            <th class="th-w2-9">最后操作时间</th>
                            <th class="th-w2-10">操作</th>
                            <th class="th-w2-11">备注</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for record_obj in record_obj_list %}
                            <tr>
                                <td><input type="checkbox" id="{{ record_obj.id }}"></td>
                                <td><span>{{ record_obj.host }}</span><a class="get_full_host pull-right" href="javascript:;">复制</a></td>
                                <td basic_code="{{ record_obj.basic }}">{% rr_type_convert record_obj.type record_obj.basic %}</td>
                                <td line="{{ record_obj.resolution_line }}">{% dns_resolution_line_fileter record_obj.resolution_line %}</td>
                                <td class="record_data"><span>{{ record_obj.data }}</span><a class="get_record_data pull-right hidden" href="javascript:;">复制</a></td>
                                <td>{% val_none_to_blank record_obj.mx_priority '-' %}</td>
                                <td ttl="{{ record_obj.ttl }}">{% ttl_convert record_obj.ttl %}</td>
                                <td>
                                    {% if record_obj.status == 'on' %}
                                        <span class="glyphicon glyphicon-play-circle green"></span>
                                    {% elif record_obj.status == 'off' %}
                                        <span class="glyphicon glyphicon-pause orange"></span>
                                    {% endif %}
                                </td>
                                <td>{{ record_obj.update_time }}</td>
                                <td><a action_type="modify" href="javascript:;">修改</a>
                                    {% if record_obj.status == 'on' %}
                                        <a action_type="status" name="_turnOff" href="javascript:;">暂停</a>
                                    {% elif record_obj.status == 'off' %}
                                        <a action_type="status" name="_turnOn" href="javascript:;">开启</a>
                                    {% endif %}
                                    <a action_type="delete" href="javascript:;">删除</a>
                                </td>
                                <td>{% val_none_to_blank record_obj.comment '' %}</td>
                            </tr>
                        {% endfor %}
                        </tbody>

                    </table>

                </div>
                {% autoescape off %}    {# 关闭特殊字符转换 #}
                    {# 分页导航条 #}
                    {{ pagination_html }}
                {% endautoescape %}
